package com.seal.tsms.exam.controller;

import com.seal.tsms.base.controller.BaseController;
import com.seal.tsms.base.service.BaseService;
import com.seal.tsms.exam.entity.ExaminationClassify;
import com.seal.tsms.exam.entity.Profession;
import com.seal.tsms.exam.entity.Teacher;
import org.hibernate.criterion.DetachedCriteria;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * Created by Administrator on 2016/6/6.
 */
//@Controller
@RequestMapping("/ExaminationClassif")
public class ExaminationClassifyController extends BaseController<Profession, String> {

    @Override
   // @Autowired
   // @Qualifier("examinationClassifyImpl")
    public void setSelfService(BaseService<Profession, String> selfService) {
        super.setSelfService(selfService);
    }
    @RequestMapping(value = "examinationClassifyListAjax")
    @ResponseBody
    public List<ExaminationClassify> ajaxList(){
        return (List<ExaminationClassify>) getSelfService().list(DetachedCriteria.forClass(ExaminationClassify.class),null);
    }
}
